<script setup>
import InfoList from '@/components/Home/infoList.vue'
import Notice from '@/components/Home/notice.vue'
import StudentList from '@/components/Home/studentList.vue'
import { ref } from 'vue'
import { useRouter } from 'vue-router'

const router = useRouter()

// 添加一些静态数据
const statistics = ref({
  totalStudents: 2568,
  activeInterns: 486,
  partnerCompanies: 128,
  successfulPlacements: 1865
})
</script>

<template>
  <div class="home-wrapper">
    <div class="page-title">
      <h1>实习就业管理系统</h1>
      <div class="decoration-line"></div>
    </div>
    
    <InfoList></InfoList>
    <div class="info-middle">
      <!-- 展示最新的十位同学实习信息 -->
      <StudentList></StudentList>
      <!-- 企业公告 -->
      <Notice></Notice>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.home-wrapper {
  display: block !important;
  padding: 24px 32px;
  flex-direction: column;
  height: auto;
  overflow: auto;
  background-color: #f5f7fa;
  position: relative;

  .page-title {
    margin-bottom: 32px;
    position: relative;
    
    h1 {
      font-size: 28px;
      color: #2c3e50;
      margin: 0;
      padding-bottom: 16px;
      font-weight: 600;
    }

    .decoration-line {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 120px;
      height: 6px;
      background: linear-gradient(to right, #409EFF, transparent);
      border-radius: 2px;
    }
  }

  .info-middle {
    margin-top: 106px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    height: 480px;

    :deep(> div) {
      flex: 1;
      background: white;
      border-radius: 12px;
      padding: 24px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
      transition: all 0.3s ease;

      &:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
      }
    }
  }
}
</style>
